package cn.tedu.test.config;

import cn.tedu.test.bean.Bean01;
import cn.tedu.test.selector.MySelector;
import org.springframework.context.annotation.*;

/**
 * 入口配置类
 */
@Configuration
@ComponentScan(basePackages = {
        "cn.tedu.test.bean",
        "cn.tedu.test.config.condition.config"})
//@Import(value={MyConfiguration02.class})
@Import(MySelector.class)
//@ImportResource("dubbo.xml")
@PropertySource(value={"jdbc.properties"})
public class MyConfiguration01 {
    public MyConfiguration01() {
        System.out.println("myconfiguration01被容器加载了");
    }
    @Bean
    public Bean01 bean01(){
        return new Bean01();
    }
}
